/*
 *  OPCostants.h
 *  CocoaOfapi
 *
 *  Created by malcom on 7/6/08.
 *  Copyright 2008 malcom-mac software. All rights reserved.
 *
 */

#define OFAPI_UNDEFINED_METHOD	-32601	

#define OFAPI_GENERAL_ERR_MUST_LOGGED				-1
#define OFAPI_GENERAL_ERROR							-100
#define OFAPI_GENERAL_PASSWORDPROTECTED_ITEM		-101

#define OFAPI_LOGIN_SUCCESS							-2
#define OFAPI_LOGIN_ERROR_PASSWORD					-3
#define OFAPI_LOGIN_ERROR_ATTEMPTS					-4

#define OFAPI_LOGIN_FPSWD_OK						-5
#define OFAPI_LOGIN_FPSWD_ERR						-6
#define OFAPI_LOGIN_FPSWD_ALREADYLOGGED				-7
#define OFAPI_LOGIN_FPSWD_WRONGFORUMID				-8

#define OFAPI_SENDMAIL_ERR_MAILDISABLED				-9
#define OFAPI_SENDMAIL_ERR_MAILNOTALLOWED			-10
#define OFAPI_SENDMAIL_ERR_FLOODLIMIT				-11
#define OFAPI_SENDMAIL_OK							-12
#define OFAPI_SENDMAIL_ERR							-124
#define OFAPI_SENDMAIL_ERR_NODESTINATION			-13

#define OFAPI_USERPROFILE_VIEW_NOTALLOWED			-14
#define OFAPI_USERPROFILE_VIEW_NOTALLOWEDANONYMOUS	-15
#define OFAPI_USERPROFILE_VIEW_NONEXISTINGMEMBER	-16

#define OFAPI_GET_TOPICMSGS_NOTOPIC					-17
#define OFAPI_GET_TOPICMSGS_NONEWERTOPICS			-18
#define OFAPI_GET_TOPICMSGS_NOOLDERTOPICS			-19
#define OFAPI_GET_TOPICMSGS_NOTOPICDATA				-20
#define OFAPI_GET_TOPICMSGS_AUTHREAD				-21
#define OFAPI_GET_TOPICMSGS_NOPOSTINTIMEFRAME		-22

#define OFAPI_SUBMIT_INVALID_MODE					-23
#define OFAPI_NO_POST_SPECIFIED						-24
#define OFAPI_NO_TOPIC_SPECIFIED					-25
#define OFAPI_NO_POST_MODE							-26
#define OFAPI_PROTECTED_FORUM_NEED_PASSWORD			-27
#define OFAPI_BOT_GO_HOME							-28
#define OFAPI_USER_CANNOT_READ						-29
#define OFAPI_USER_CANNOT_POST						-30
#define OFAPI_USER_CANNOT_REPLY						-31
#define OFAPI_USER_CANNOT_DELETE					-32
#define OFAPI_CANNOT_DELETE_REPLIED					-33
#define OFAPI_TOPIC_LOCKED							-34
#define OFAPI_CANNOT_EDIT_TIME						-35
#define OFAPI_CANNOT_EDIT_POST_LOCKED				-36
#define OFAPI_NOT_AUTHORISED						-37
#define OFAPI_CANNOT_POST_ANNOUNCE					-38
#define OFAPI_CANNOT_POST_STICKY					-39
#define OFAPI_POST_DELETED							-40
#define OFAPI_DELETED_OWN_POST						-41

#define OFAPI_MEMBERSLIST_ANONYMOUS_NOT_ALLOWED		-42
#define OFAPI_MEMBERSLIST_NOT_AUTHORIZED			-43



#define OFAPI_SEARCH_NOT_ALLOWED					-44
#define OFAPI_SEARCH_NOT_CURRENTLY_AVAILABLE		-45
#define OFAPI_SEARCH_DISABLED_FLOODED				-46
#define OFAPI_SEARCH_AUTHORFIELD_TOOSHORT			-47
#define OFAPI_SEARCH_AUTHORFIELD_NOTVALIDNAMES		-48
#define OFAPI_SEARCH_NO_SEARCHMODULE				-49
#define OFAPI_SEARCH_GENERAL_ERROR					-50
#define OFAPI_SEARCH_NO_KEYWORDS_TOSEARCH			-51
#define OFAPI_SEARCH_NO_RESULTS						-52